# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=recon-ng
pkgver=5.1.2
pkgrel=1
pkgdesc="Full-featured Web Reconnaissance framework written in Python"
url="https://github.com/lanmaster53/recon-ng"
arch="noarch"
license="GPL-3.0-only"
depends="py3-dicttoxml py3-dnspython py3-lxml py3-yaml
	py3-mechanize py3-requests py3-xlsxwriter py3-flask
	py3-unicodecsv"
options="!check" # no test/check available
source="$pkgname-$pkgver.tar.gz::https://github.com/lanmaster53/recon-ng/archive/v$pkgver.tar.gz"

package() {
	mkdir -p "$pkgdir"/usr/share/$pkgname
	mkdir -p "$pkgdir"/usr/bin
	cp -R * "$pkgdir"/usr/share/$pkgname
	for pkg in recon-web recon-cli recon-ng; do
		ln -s /usr/share/$pkgname/$pkg "$pkgdir"/usr/bin/$pkg
	done
	rm -f "$pkgdir"/usr/share/recon-ng/Dockerfile \
		"$pkgdir"/usr/share/recon-ng/docker-compose.yml
}

sha512sums="
7b0a22b62495d885ac94a6b8e6998209a639f313099f6cb0dbc5cab5eff2926af81bf1a1d96f8b0165a8f5982c71dd11ebe35fc98ce9c648457d630dbbd93d26  recon-ng-5.1.2.tar.gz
"
